<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<div class="span8 offset2">
    <form class="form-horizontal well" method="POST" action="MainServlet?action=stopping.point.save" onsubmit="return checkStoppingPoint();">
        <fieldset>
            <legend>Edit stopping point</legend>
            <div class="hidden">
                <input type="hidden" name="id" value="<c:out value="${stoppingPoint.getId()}" />">
            </div>
            <div id="stoppingPointNameControlGroup" class="control-group">
                <label class="control-label" for="stoppingPointName">Stopping point name:</label>
                <div class="controls">
                    <input class="myinput" type="text" id="stoppingPointName" name="stoppingPointName" value="<c:out value="${stoppingPoint.getStoppingPointName()}" />">
                    <span id="stoppingPointNameHelpInline" class="help-inline"></span>
                </div>
            </div>
            <div class="form-actions">
                <input type="submit" class="btn btn-primary" name="saveButton" value="Save stopping point data">
                <button class="btn" id="cancelButton" name="cancelButton" data-button-to-click="cancelButtonOutOfForm">Cancel</button>
                <input type="reset" class="btn" name="resetButton" value="Reset">
            </div>
        </fieldset>
    </form>
    <button class="btn" id="cancelButtonOutOfForm" data-link="stopping-point-list" style="display: none; visibility: hidden; height: 0px; width: 0px;">Cancel</button>
</div>
